-- GENERATED SPELL FOR [Spirit of Atha] --


function spell0_29033(pUnit, Event) --@Aqua Jet,Self--
pUnit:FullCastSpellOnTarget(21790,pUnit)
pUnit:RegisterEvent('Sorts_29033', 532, 1)
end

function spell1_29033(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_29033', 633, 1)
end

function Sorts_29033(pUnit, Event)
local choix_sorts_29033 = math.random(0, 1)
if choix_sorts_29033 == 0 then
pUnit:RegisterEvent('spell0_29033', 1, 1)
end
if choix_sorts_29033 == 1 then
pUnit:RegisterEvent('spell1_29033', 1, 1)
end
end

function mob29033_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29033', math.random(1500, 3000), 1)
end

function mob29033_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29033_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29033_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29033, 1, 'mob29033_Action')
RegisterUnitEvent(29033, 2, 'mob29033_Leave')
RegisterUnitEvent(29033, 3, 'mob29033_Kill')
RegisterUnitEvent(29033, 4, 'mob29033_Die')
